import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login.vue'
import Defecttype from '../components/Defecttype.vue'
import Defectstate from '../components/Defectstate.vue'
import DefectList from '../components/DefectList.vue'
import Mainpage from '../components/Mainpage.vue'
import Accountmanagement from '../components/Accountmanagement.vue'
import Membermanagement from '../components/Membermanagement.vue'
import Project from '../components/Project.vue'
import Projectaccount from '../components/Projectaccount.vue'
import Rolemanagement from '../components/Rolemanagement.vue'
import Defectdistribution from '../components/Defectdistribution.vue'
import Defecthandle from '../components/Defecthandle.vue'
import Defectfeedback from '../components/Defectfeedback.vue'
import Priority from '../components/Priority.vue'
import Severity from '../components/Severity.vue'
import Severitypro from '../components/Severitypro.vue'
import Defectstatepro from '../components/Defectstatepro.vue'
import Defecttypepro from '../components/Defecttypepro.vue'
import Myproject from '../components/Myproject.vue'
import Myprojectdesc from '../components/Myprojectdesc.vue'
import DayWorktime from '../components/Dayworktime.vue'
import Monthworktime from '../components/Monthworktime.vue'


Vue.use(Router)

export default new Router({
	routes: [{
			path: '/',
			component: Login
		},
		{
			path: '/login',
			component: Login
		},
		{
			path: "/mainpage",
			component: Mainpage,
			children: [{
					path: "/accountmanagement",
					component: Accountmanagement
				},
				{
					path: "/membermanagement",
					component: Membermanagement
				},
				{
					path: "/project",
					component: Project
				},
				{
					path: "/projectaccount",
					component: Projectaccount
				},
				{
					path: "/rolemanagement",
					component: Rolemanagement
				},
				{
					path: '/defectlist',
					component: DefectList
				},
				{
					path: '/defecttype',
					component: Defecttype
				},
				{
					path: '/defectstate',
					component: Defectstate
				},
				{
					path: '/defectdistribution',
					component: Defectdistribution
				},
				{
					path: '/defecthandle',
					component: Defecthandle
				},
				{
					path: '/defectfeedback',
					component: Defectfeedback
				},
				{
					path: "/priority",
					component: Priority
				},
				{
					path: "/severity",
					component: Severity
				},
				{
					path: "/severitypro",
					component: Severitypro
				},
				{
					path: "/defectstatepro",
					component: Defectstatepro
				},
				{
					path: "/defecttypepro",
					component: Defecttypepro
				}, {
					path: "/myproject",
					component: Myproject
				},
				{
					path: "/myprojectdesc",
					component: Myprojectdesc
				},
				{
					path: '/dayworktime',
					component: DayWorktime
				},
				{
					path: "/monthworktime",
					component: Monthworktime
				},

			]
		}
	]
})
